<pre class="docs-method-signature"><code>rect.normalize()</code></pre>
<p>Normalize the rectangle, i.e. make it so that it has non-negative width and height.</p>

<p>If width is less than <code>0</code>, the function swaps left and right corners and if height is less than <code>0</code>, the top and bottom corners are swapped.</p>
